<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      .model{
          position:relative;
          width:300px;
          height:200px;
          border:1px solid #333;
          margin:200px auto;
          background:pink;
          border-radius:10px;
      }
      span{
          position:absolute;
          display:inline-block;
          height: 30px;
          width: 60px;
          color: black;
          right:0px;
          top:10px;         
      }
     .btn1{
        position:absolute; 
        width:40px;
        height:30px;
        left:30px;
        bottom:30px;
      }
      .btn2{
        position:absolute; 
        width:40px;
        height:30px;
        right:30px;
        bottom:30px;
      }
    </style>
  </head>
  <body>
    <div class="model">
      <span>关闭</span>
      <input class="btn1" type="button" value="确认" />
      <input class="btn2" type="button" value="取消" />
    </div>
  </body>
</html>
